<?php
    $path = "http://admin:admin@localhost:8080/alfresco/s/cmis" . $_GET['id'];
    $meta = getimagesize($path);
    $resource = file_get_contents($path);
/*    header("Content-Type: " . $meta['mime'] . ";charset=utf=8");
    header("Content-Length: " . strlen($resource));
  */  
	echo $resource;
?>
